package com.practice.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * desc
 *
 * @author: kayn
 * 2024-09-03 17:03
 **/
@NoArgsConstructor
@Data
public class WriteRequestDTO {

    /**
     * 集合
     */
    private List<CommandDTO> commands;

    public static WriteRequestDTO init(List<CommandDTO> commands) {
        WriteRequestDTO dto = new WriteRequestDTO();
        dto.commands = commands;
        return dto;
    }
}
